package com.tm.result;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by lichuan on 2022-09-05.
 */
@Getter
@AllArgsConstructor
public enum ResultCode {
    SUCCESS(200,"成功"),
    FAIL(-1,"失败"),
    MSG_CODE_EMPTY(2001,"验证码不存在" ),
    MSG_CODE_ERROR(2002, "验证码错误"),
    TOKEN_FAIL(2003, "token解析异常"),
    TOKEN_UNDEFINED(2004, "token不存在"),
    TODAYBEST_IS_EMPTY(2005, "佳人不存在"),

    QUANZI_NOT_FOUND(2006,"圈子不存在" ),
    GET_BAIDU_TOKEN_ERROR(2007, "token生成异常"),

    DEL_COMMENT_ERROR(2008, "删除评论失败"),
    IS_NOT_FOLLOW_ERROR(2009,"不是关注的对象" ),
    UPLOAD_PIC_ERROR(2010,"上传缩略图失败" ),
    UPLOAD_VIDEO_ERROR(2011,"上传视频失败" ),
    TOKEN_HASH_EXPIRED(2012, "token过期"),
    TOKEN_IS_INVALID(2013,"token认证" ),
    LOGOUT_SUCCESS(2014,"退出成功" ),
    NOT_TOKEN(2015,"没有token异常" ),
    MEIYOUQUANXIAN(2016,"没有权限" );
    private int code;

    private String msg;
}
